package com.eastfair.venueservice.service;

import com.eastfair.boot.service.SuperService;
import com.eastfair.venueservice.dto.ServiceItemDiscountDTO;
import com.eastfair.venueservice.entity.ServiceItem;
import com.eastfair.venueservice.entity.ServiceItemDiscount;
import com.eastfair.venueservice.vo.ServiceItemDiscountVO;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 服务折扣利率
 * </p>
 *
 * @author linan
 * @date 2022-07-28
 */
public interface ServiceItemDiscountService extends SuperService<ServiceItemDiscount> {
    /**
     * do转vo
     * @param model
    */
    ServiceItemDiscountVO doToVo(ServiceItemDiscount model);
   /**
    * do转vo
    * @param modelList
   */
    List<ServiceItemDiscountVO> doToVos(List<ServiceItemDiscount> modelList);


   /**
    * 通用查询
    *
    * @param modelDTO DTO
    * @param ids 主键id集合
    * @return list
    */
   List<ServiceItemDiscount> list(ServiceItemDiscountDTO modelDTO, List<Long> ids);

  /**
  * 通用查询
  *
  * @param modelDTO DTO
  * @param ids 主键id集合
  * @return list
  */
  List<ServiceItemDiscount> listOfCache(ServiceItemDiscountDTO modelDTO, List<Long> ids);

    /**
     * 保存服务折扣
     * @param serviceItem serviceItem
     * @param serviceItemDiscountList serviceItemDiscountList
     */
    void saveDiscount(ServiceItem serviceItem, List<ServiceItemDiscountDTO> serviceItemDiscountList);
}
